:root {
    --color-main: #2569f1;
    --color-aux-red: #FD4444;
    --color-aux-yellow: #01CF9F;
    --color-aux-orange: #F87B30;
    --color-aux-green: #009D52;

    --color-background: #fff;
    --color-text-title: #333333;
    --color-block--background-text-title: #fff;
    --color-block--background-selected: rgba(37, 105, 241, 0.56);
    --color-text-summary: #666666;
    --color-text-info: #999999;
    --color-text-tip: #CCCCCC;
    --color-text-hover: var(--color-main);
    --color-text-selected: #fff;

    --color-logo: #FFF;
    --font-size: 14px;

    --color-background-readonly: #EDEFF2;
    --color-background-disabled: #EDEFF2;
    --color-background-hover: var(--color-aux-green);
    --color-background-selected: #EAF0FD;

    --color-border: var(--color-text-tip);
    --color-border-disabled: #999999;
    --color-border-hover: var(--color-main);
    --color-border-focus: var(--color-main);


    --color-split: #f0f0f0;
    --color-shadow: #000;
    --color-toolbar: var(--color-background);
    --color-icon: var(--color-text-title);

    --btn-color-primary: #2569F1;
    --btn-color-primary-hover: #4F86F3;
    --btn-color-primary-click: #1D54C0;
    --btn-color-primary-disabled: #C0D2F6;
    --btn-color-secondary: #ECF1FA;
    --btn-color-secondary-hover: #D9E5FA;
    --btn-color-secondary-click: #B3CEFB;
    --btn-color-secondary-disabled: #F0F4FB;
    --btn-color-warning: #FF0000;
    --btn-color-warning-hover: #FF5C5C;
    --btn-color-warning-click: #E80000;
    --btn-color-warning-disabled: #FCB1B1;
    --btn-color-alert: #FBE2E2;
    --btn-color-alert-hover: #FACCCC;
    --btn-color-alert-click: #FABABA;
    --btn-color-alert-disabled: #FCE3E3;
    --btn-color: #FBFBFB;
    --btn-color-hover: #F3F3F3;
    --btn-color-click: #E7E7E7;
    --btn-color-disabled: #F8F8F8;

    --border-radius: 3px;
}

@font-face {
    font-family: "mapway-font";
    font-style: normal;
    font-weight: 400;
    src: url(./iconfont.woff2) format('woff2');
}

* {
    margin: 0;
    border: 0;
    box-sizing: border-box;
    font-family: "Arial", mapway-font, "Microsoft YaHei", "黑体", "宋体", sans-serif;
    font-size: 1rem;
}

.mapway-font {
    font-family: mapway-font;
}

.gwt-TextBox {
    -webkit-appearance: none;
    background-color: white;
    border: 1px solid #f0f0f0;
    height: 34px;
    line-height: 34px;
    outline: none;
    padding: 0 0 0 8px;
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
    user-select: none;
    border-radius: 3px;
}

.gwt-TextBox:HOVER {
    border-color: #a0a0a0;
    user-select: none;
}

.gwt-TextBox[readonly] {
    background-color: #f0f0f0;
}

.gwt-TextBox[disabled] {
    background-color: #f0f0f0;
}

.gwt-TextBox[type="color"] {
    padding: 0;
}


.ai-dialog {
    background-color: white;
    color: black;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.ai-dialog table {
    border-collapse: separate !important;
}

.ai-caption {
    background-color: white;
    padding: 20px 28px 10px 26px;
    vertical-align: middle;
    cursor: move;
}

.ai-caption-title {
    font-size: 18px;
    color: black;
    font-weight: bold;
    cursor: move;
    user-select: none;
}

.ai-caption-icon {
    color: #f0f0f0;
    cursor: default;
    user-select: none;
}

.ai-caption-tools {

}


.ai-dialog-close {
    color: #404040;
    width: 24px;
    padding: 2px;
    border-radius: 3px;
    text-align: center;
    font-size: 20px;
}

.ai-dialog-close:HOVER {
    background-color: #f0f0f0;
    color: black;
}

.ai-dialog-content {
    padding: 10px 26px;
}


.gwt-Button {
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
    background: var(--btn-color-primary);
    min-width: 72px;
    vertical-align: middle;
    height: 32px;
    outline: none;
    border-radius: var(--border-radius);
    color: var(--color-background);
    padding: 0 15px;
    margin: 0 8px;
}

.gwt-Button:HOVER {
    background-color: var(--btn-color-primary-hover);
}

.gwt-Button:focus {
    background-color: var(--btn-color-primary-click);
}

.gwt-Button:disabled,
.gwt-Button[disabled] {
    background-color: var(--btn-color-primary-disabled);
    cursor: not-allowed;
}

.gwt-Button[btn-style="second"] {
    color: var(--color-main);
    border: solid 1px var(--color-main);
    background-color: var(--btn-color-secondary);
}

.gwt-Button[btn-style="second"]:HOVER {
    background-color: var(--btn-color-secondary-hover);
}

.gwt-Button[btn-style="second"]:FOCUS {
    background-color: var(--btn-color-secondary-click);
}

.gwt-Button[btn-style="second"]:disabled, .gwt-Button[btn-style="second"][disabled] {
    background-color: var(--btn-color-secondary-disabled);
}

.gwt-Button[btn-style="warning"] {
    color: var(--color-background);
    border: solid 1px var(--btn-color-warning);
    background-color: var(--btn-color-warning);
}

.gwt-Button[btn-style="warning"]:HOVER {
    background-color: var(--btn-color-warning-hover);
}

.gwt-Button[btn-style="warning"]:FOCUS {
    background-color: var(--btn-color-warning-click);
}

.gwt-Button[btn-style="warning"]:disabled, .gwt-Button[btn-style="second"][disabled] {
    background-color: var(--btn-color-warning-disabled);
}

.gwt-Tree .gwt-TreeItem {
    height: 30px;
    line-height: 30px;
    padding: 1px 0;
    margin: 0;
    white-space: nowrap;
    cursor: default;
}

div:has(> .gwt-TreeItem-selected) {
    background-color: #f0f0f0;
}

.gwt-Tree .gwt-TreeItem-selected {
    font-weight: bold;
    background: transparent;
    color: black;
}

table td {
    font-size: 1rem;
}

.align-right {
    text-align: right;
}

.gwt-Anchor {
    font-size: 1rem;
    color: black;
}